package net.lainiao.morethread.Chapter4.demo2;

/**
 * Created by Administrator on 2017/3/3.
 */
public class Main {
    public static void main(String[] args) {
        System.out.println("Main Method is Start");
        Server server=new Server();
        for (int i = 0; i < 100; i++) {
            Task task = new Task("Task" + i);
            server.executeTask(task);
        }
        server.endServer();
//        Task task = new Task("TaskOver");
//        server.executeTask(task);
        System.out.println("Main Method is Over");
    }
}
